package net.oschina.arvin.sqlbuilder.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 降序排序
 *
 * @author Arvin
 * @time 2017/11/16 15:42
 */
@Target(FIELD)
@Retention(RUNTIME)
public @interface OrderDesc {

    /**
     * 排序顺序， 越小的将排在越前面
     *
     * @return
     */
    int order() default 0;
}
